import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/main.css'

// 新增以下三行
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn, // 中文配置
})

app.use(router)

app.mount('#app')